#========================================================================
# TP Animation / Synthese image
#
#------------------------------------------------------------------------
# Copyright (c) 2010-2011 Equipe SAMSARA (T. LE NAOUR, N. COURTY, S. GIBET)
# VALORIA - UBS 
#========================================================================

PROJECT(MAIN_APP)

INCLUDE_DIRECTORIES(
					${SDL_INCLUDE_DIR}
					${GLEW_INCLUDE_DIR}
)					

LINK_DIRECTORIES(${LIBRARY_OUTPUT_PATH})

ADD_EXECUTABLE(Main_app 
			main.cpp 
			TPAnimation.h
			TPAnimation.cpp
			TPSynthese.h
			TPSynthese.cpp

			GUI.cpp			
			GUI.h
			Common.h
			Application.h
			Application.cpp
			
			Mesh.h
			Mesh.cpp
			MeshLoader.h
			MeshLoader.cpp
			
			Renderer.h
			Renderer.cpp

			#Animation 
			#AnimationRotations.h
			#AnimationRotations.cpp
			#AnimatedChain.h
			#AnimatedChain.cpp
			#Interpolator.h
			#Interpolator.cpp
			#Quaternion.h	
			Matrix44.h	
			Vector3.h
			Vector4.h		
)


IF(UNIX)
	IF(APPLE)
		TARGET_LINK_LIBRARIES(	Main_app 
								${OPENGL_LIBRARIES} 
								${GLU_LIBRARIES} 
								${GLEW_LIBRARIES} 
								${SDL_LIBRARY} 
								"-framework SystemConfiguration"
					)
	ELSE(APPLE)
		TARGET_LINK_LIBRARIES(	Main_app 
								${OPENGL_LIBRARIES} 
								${GLU_LIBRARIES} 
								#${GLEW_LIBRARIES} 
								${SDL_LIBRARY}
					)
	ENDIF(APPLE)
ENDIF(UNIX)

IF(WIN32)
	TARGET_LINK_LIBRARIES(	Main_app 
						${GLU_LIBRARIES} 
						${GLEW_LIBRARIES} 
						${SDL_LIBRARY} 
						OpenGL32.lib
					)
ENDIF(WIN32)

					